package com.bw.wxy.mvp.view;

import android.graphics.Color;
import android.view.View;

import androidx.fragment.app.FragmentManager;

import com.bw.wxy.R;
import com.bw.wxy.mvp.base.view.BaseActivity;
import com.bw.wxy.mvp.contract.FrameContract;
import com.bw.wxy.mvp.di.DaggerFrameComponent;
import com.bw.wxy.mvp.di.FrameModules;
import com.bw.wxy.mvp.presenter.FramePresenter;
import com.bw.wxy.fragment.UserFragment;
import com.bw.wxy.widget.BottomBut;

import java.util.Map;

public class FrameActivity extends BaseActivity<FramePresenter> implements FrameContract.IFrameView, BottomBut.SelectListener{

    private UserFragment userFragment;

    @Override
    public int addBarColor() {
        return Color.WHITE;
    }

    @Override
    public View addStatusView() {
        return f(R.id.framer_linear);
    }

    @Override
    public int bindLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void initView() {
        userFragment=new UserFragment();
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        supportFragmentManager.beginTransaction().add(R.id.main_linear,userFragment).commit();

    }

    @Override
    public void initData() {

    }

    @Override
    public void inject() {
        DaggerFrameComponent.builder().frameModules(new FrameModules(this)).build().inject(this);
    }

    @Override
    public void refresh(Map<String, Object> resultMap) {

    }

    @Override
    public void onSelect(int id) {

    }
}

